<template>
  <transition name="van-slide-up">
  <router-view/>
  </transition>
  <nav v-show="isShow">
  <van-tabbar v-model="active" route :placeholder="true">
    <van-tabbar-item to="/business/list" icon="shop" style="background-color: #e1e1e1">商家</van-tabbar-item>
    <van-tabbar-item to="/cart/list" icon="cart" style="background-color: #e1e1e1">购物车</van-tabbar-item>
    <van-tabbar-item to="/user/my" icon="user" style="background-color: #e1e1e1">我的</van-tabbar-item>
  </van-tabbar>
  </nav>
</template>

<script>
  import {showDialog} from "vant";

  const whiteList = ['/business/list','/cart/list','/user/my','/user/myNOLogin','/user/mySuccessLogin']
  export default {
    name: 'App',
    data() {
      return {
        active: 0,
        outWill: ''
      }
    },
    computed: {
      isShow(){
        return whiteList.includes(this.$route.fullPath)
      }
    },
  }
</script>

<style lang="stylus">

</style>
